package com.xc.hotelmgr.order.modules.order.service.impl;

import com.xc.hotelmgr.order.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xc.hotelmgr.order.common.utils.PageUtils;

import com.xc.hotelmgr.order.modules.order.dao.DailyInfoDao;
import com.xc.hotelmgr.order.modules.order.entity.DailyInfoEntity;
import com.xc.hotelmgr.order.modules.order.service.DailyInfoService;


@Service("dailyInfoService")
public class DailyInfoServiceImpl extends ServiceImpl<DailyInfoDao, DailyInfoEntity> implements DailyInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DailyInfoEntity> page = this.page(
                new Query<DailyInfoEntity>().getPage(params),
                new QueryWrapper<DailyInfoEntity>()
        );

        return new PageUtils(page);
    }

}